package com.cloudlead.plugin.dict.entity;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.common.persistence.UpdateCheck;

import javax.validation.constraints.Size;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import javax.validation.constraints.NotNull;
import java.lang.Integer;

/**
 * EDict is a Querydsl bean type
 */
@Label("字典")
public class EDict extends AbstractIdEntity<String> {

    private static final long serialVersionUID =30471752267431L;    
    @NotNull
    @Size(max=255)
    @Label("字典标签")
    private String dictLabel;

    @NotNull
    @Label("字典值")
    private Integer dictValue;

    @NotNull
    @Size(max=24)
    @Label("组编号")
    private String groupId;

    @NotNull(groups={UpdateCheck.class})
    @Size(max=24)
    @Label("字典编号")
    private String id;

    @Size(max=24)
    @Label("父编号")
    private String pid;

    public String getDictLabel() {
        return dictLabel;
    }

    public void setDictLabel(String dictLabel) {
        this.dictLabel = dictLabel;
    }

    public Integer getDictValue() {
        return dictValue;
    }

    public void setDictValue(Integer dictValue) {
        this.dictValue = dictValue;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String toString() {
         return String.format("EDict { dictLabel : %s,dictValue : %s,groupId : %s,id : %s,pid : %s }",dictLabel,dictValue,groupId,id,pid);
    }

}

